﻿@page
@model IndexModel
@{
    ViewData["Title"] = "Home page";
}

<div class="text-center">
    <h1 class="display-4">Welcome to cc channel</h1>
    <p>Learn about <a href="https://www.doubao.com/chat/?channel=baidu_pz&from_login=1">building Web apps with DouBao</a>.</p>

    <div style="display: flex; align-items: center; justify-content: center; margin-top: 20px;">
        <form method="post" style="display: flex; justify-content: center; align-items: center;">
            <input type="text" name="inputText" placeholder="输入文本..." style="margin-right: 10px; padding: 5px; width:500px" />
            <button type="submit" style="padding: 5px 10px;">发送</button>
        </form>
    </div>
</div>

@if (Model.Response != null)
{
    <div>
        <h3>AI 响应:</h3>
        <p>@Model.Response</p>
    </div>
}